#pragma once

class Camara
	{
	public:
		float x;
		float y;
	private:
		bool locked;
		bool centrado;
	public:
		Camara(void);
		void lock();
		void unlock();	

		void setCentrado(bool centered){centrado = centered;}
		bool isCentrado(){return centrado;}

		float getX(){return x;}
		float getY(){return y;}

		void  setX(float x);
		void  setY(float y);

		void update(int playerX, int playerY,int anchoMapa, int altoMapa);
		void translate();
		void unTranslate();
		~Camara(void);
	};
